package com.mesmileAI.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 * 
 * @TableName smile_text
 */
@TableName(value ="smile_text")
@Data
public class SmileText implements Serializable {
    /**
     * 文本id
     */
    @TableId(value = "id")
    private String id;

    /**
     * 名字
     */

    private String name;

    /**
     * 文本
     */

    private String textPice;

    /**
     * 创建日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    /**
     * 创建日期
     */

    private Integer level;


    /**
     * 判定层级
     */
    private Integer hierarchy;

    /**
     * 索引id
     */
    private String indexId;




    @Serial
    private static final long serialVersionUID = 1L;

    @TableField(exist = false)
    private List<SmileText> children;


}